package com.ruoyi.system.domain.vo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.system.domain.Dept;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeptVo extends BaseEntity {

    private Long deptId;
    private String deptName;
    private Long deptEmpNum;
    private Long parentId;
    private Long totalNum;
    private String workingHours;
    public static Long getToltalNum( List<DeptVo> deptVoList){
        Long totalNum = 0L;
        if (deptVoList == null) {
            return 0L;
        }
        for(DeptVo deptVo:deptVoList){
            totalNum+=deptVo.getDeptEmpNum();
        }
        return totalNum;
    }


}
